package com.hjw.java.interface_work;

/**
 * 一种炮
 * @author hjwStrart
 * @create 2022-01-13 17:52
 */
public class Cannon extends FireWorks{

    public Cannon(String color){
        if (color == null)
            color = "红色";
        setColor(color);
    }
    @Override
    public void boom() {
        System.out.println(getColor() + "的烟花好似美丽的流星雨，从天空划过。");
    }
}
